package com.iweb.utitls;

/**
 * @author ryl
 * @version 1.0
 * @data 2025/4/2 14:05
 * 处理未登录情况的类
 */
public class NotLogin {
    private GetNumber getNumber;

    public NotLogin() {
        this.getNumber = new GetNumber();
    }
    /**
     * 未登录展示菜单
     */

    public void failed() {
        Menu.loginMenu();
        int option = getNumber.getUserInputAsInt();
        switch (option) {
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                System.out.println("请先登录！");
                break;
            case 7:
                System.out.println("退出到登录页成功！");
                break;
            case 0:
                System.out.println("谢谢使用，再见！");
                return;
            default:
                System.out.println("无效选项，请重新选择....");
                break;
        }
    }


}
